Registry Guide for Windows Registry Guide for Windows
Part of the WinGuides Network
WinGuides Network and Software
Registry tweaks, tricks & hacks to optimize, enhance and secure Microsoft Windows.

Change the Client-Side DNS Caching Timeouts (Windows 2000/XP/.NET)
Category: Home > Network > Clients

Download this tweak with Tweak Manager!This tweak can be easily applied using WinGuides Tweak Manager.
Download a free trial now!

Windows contains a client-side Domain Name System (DNS) cache with stores recent domain lookup entries. If you are experiencing caching or lookup problems you can disable or change the cache timeout.

Open your registry and find the key below.

To change the DNS cache timeout for positive responses (where a lookup was successful).

Windows 2000 - Create or modify the DWORD value called "MaxCacheEntryTtlLimit".

Windows XP and .NET Server 2003 - Create or modify the DWORD value called "MaxCacheTtl".

Set the value to equal the required timeout in seconds the default is 86400 (1 day).

To change the DNS cache timeout for negative responses (where a lookup failed).

Windows 2000 - Create or modify the DWORD value called "NegativeCacheTime".

Windows XP and .NET Server 2003 - Create or modify the DWORD value called "MaxNegativeCacheTtl".

Set the value to equal the required timeout in seconds the default is 300 (5 minutes).

Restart Windows for the changes to take effect.

Registry Editor Example
|NameTypeData|
|(Default)REG_SZ(value not set)|
|MaxCacheEntryTtlLimitREG_DWORD0x00000001 (1)|
|NegativeCacheTimeREG_DWORD0x00000000 (0)|
-
|HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters|
-

Settings:
System Key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters]
Name: MaxCacheEntryTtlLimit, NegativeCacheTime
Type: REG_DWORD (DWORD Value)
Value: Time in Seconds

Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.

Last Modified: April 4, 2003

 Return to Index Copyright © 1998-2003. All Rights Reserved.  License